package com.jk.controller;


import com.jk.api.HotelServiceApi;
import com.jk.dao.HotelDao;
import com.jk.po.HotelPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * @author 段卓帆
 * @date 2021/6/30 11:31
 * @return 酒店
 */
@Controller
public class HotelController implements HotelServiceApi {
    @Autowired
    private HotelDao hotelDao;

    /**
     * @author 段卓帆
     * @date 2021/6/30 11:26
     * @return 查询酒店信息
     */
    @Override
    public List<HotelPO> queryHotel() {
        return hotelDao.selectList(null);
    }

    /**
     * @author 段卓帆
     * @date 2021/6/30 14:50
     * @return 查看酒店详情
     */
    @Override
    public HotelPO queryHotelById(Integer id) {
        return hotelDao.selectById(id);
    }



}
